﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.BaseData.Entitys;

/// <summary>
/// 跳检规则明细实体.
/// </summary>
[SugarTable("qms_base_inspectionrole","跳检规则明细")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBaseInspectionroleEntity:CLDEntityBase
{

    /// <summary>
    /// 主表ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_MainId",ColumnDescription = "主表ID")]
    public string MainId { get; set; }

    /// <summary>
    /// 阶段.
    /// </summary>
    [SugarColumn(ColumnName = "F_Stage",ColumnDescription = "阶段")]
    public string Stage { get; set; }

    /// <summary>
    /// 阶段描述.
    /// </summary>
    [SugarColumn(ColumnName = "F_StageDesc",ColumnDescription = "阶段描述")]
    public string StageDesc { get; set; }

    /// <summary>
    /// 判断条件:=、>、<、>=、<=.
    /// </summary>
    [SugarColumn(ColumnName = "F_JudeCondition",ColumnDescription = "判断条件:=、>、<、>=、<=")]
    public string JudeCondition { get; set; }

    /// <summary>
    /// 连续天数.
    /// </summary>
    [SugarColumn(ColumnName = "F_ContinuityDay",ColumnDescription = "连续天数")]
    public int? ContinuityDay { get; set; }

    /// <summary>
    /// 合格数.
    /// </summary>
    [SugarColumn(ColumnName = "F_InspLot",ColumnDescription = "合格数")]
    public int? InspLot { get; set; }

    /// <summary>
    /// 天数与批次逻辑关系：并且、或.
    /// </summary>
    [SugarColumn(ColumnName = "F_KeyWord",ColumnDescription = "天数与批次逻辑关系：并且、或")]
    public string KeyWord { get; set; }

    /// <summary>
    /// 新阶段.
    /// </summary>
    [SugarColumn(ColumnName = "F_OkStageNo",ColumnDescription = "新阶段")]
    public string OkStageNo { get; set; }

    /// <summary>
    /// 拒绝.
    /// </summary>
    [SugarColumn(ColumnName = "F_RejectNun",ColumnDescription = "拒绝")]
    public decimal RejectNun { get; set; }

    /// <summary>
    /// NG新阶段.
    /// </summary>
    [SugarColumn(ColumnName = "F_NGStageNo",ColumnDescription = "NG新阶段")]
    public string NgStageNo { get; set; }

    /// <summary>
    /// 初始阶段:0否 1是.
    /// </summary>
    [SugarColumn(ColumnName = "F_IsDefault",ColumnDescription = "初始阶段:0否 1是")]
    public int? IsDefault { get; set; }

    /// <summary>
    /// 免检:0否 1是.
    /// </summary>
    [SugarColumn(ColumnName = "F_IsExempt",ColumnDescription = "免检:0否 1是")]
    public int? IsExempt { get; set; }


}